

package com.ruoyi.api.factory.impl;

import com.ruoyi.api.ThirdPartyApi;
import com.ruoyi.api.factory.ThirdPartyApiFactory;
import com.ruoyi.api.gd.GaoDeWeatherApi;
import org.springframework.stereotype.Component;

@Component
public class GaoDeApiFactory implements ThirdPartyApiFactory {

    private final GaoDeWeatherApi gaoDeWeatherApi;

    public GaoDeApiFactory(GaoDeWeatherApi gaoDeWeatherApi) {
        this.gaoDeWeatherApi = gaoDeWeatherApi;
    }

    @Override
    public ThirdPartyApi createGdWeatherApi() {
        return gaoDeWeatherApi;
    }
}